/**
 * @description 返回给客户端的json数据模型
 * @author 钟宇飞
 * @version 1.0.0
 */

class ResultJson {
  constructor(flag, msg, data = []) {
    this.status = flag ? 'success' : 'fail';
    this.msg = msg;
    this.data = data;
  }
}
module.exports = ResultJson;
